  <h1>An error occurred</h1>
  <h2><?php echo $this->message ?></h2>

  <?php if (isset($this->exception)): ?>

  <p>
      <b>Information:</b> <?php echo $this->exception->getMessage() ?>
  </p>

	<?php if ($this->showStackTrace): ?>
	<p>
		<a style='text-decoration: none; font-size: 12px; color: #0066CC; cursor: pointer; cursor: hand' id='toggleStackTrace' onclick='showStackTrace()'>Click here to show debugging information</a>
	</p>
	<div id='debugInfo' style='display: none;'>
  	<h3>Stack trace:</h3>
  	<pre><?php echo $this->exception->getTraceAsstring() ?>
  	</pre>
  	
  	<h3>Request Parameters:</h3>
  	<pre><?php echo var_export($this->request->getParams(), true) ?>
  	</pre>
  	</div>
  	<?php endif ?>

  <?php endif ?>
  
  <?php echo $this->render('includes/contact_on_error.phtml')?>
  
  <script type="text/javascript">
  	function showStackTrace()
  	{
  	  	$('#debugInfo').show();
  	  	$('#toggleStackTrace').hide();
  	}
  </script>